// To parse this JSON data, do
//
//     final juBoEmployeeModel = juBoEmployeeModelFromJson(jsonString);

import 'dart:convert';

JuBoEmployeeModel juBoEmployeeModelFromJson(String str) => JuBoEmployeeModel.fromJson(json.decode(str));

String juBoEmployeeModelToJson(JuBoEmployeeModel data) => json.encode(data.toJson());

class JuBoEmployeeModel {
  JuBoEmployeeModel({
    this.errMsg,
    this.pageCount,
    this.pageIndex,
    this.reList,
    this.success,
    this.totalCount,
    this.totalSum,

  });

  String errMsg;
  int pageCount;
  int pageIndex;
  List<ReList> reList;
  int success;
  int totalCount;
  String totalSum;



  factory JuBoEmployeeModel.fromJson(Map<String, dynamic> json) => JuBoEmployeeModel(
    errMsg: json["ErrMsg"],
    pageCount: json["PageCount"],
    pageIndex: json["PageIndex"],
    reList: List<ReList>.from(json["ReList"].map((x) => ReList.fromJson(x))),
    success: json["Success"],
    totalCount: json["TotalCount"],
    totalSum: json["TotalSum"],
  );

  Map<String, dynamic> toJson() => {
    "ErrMsg": errMsg,
    "PageCount": pageCount,
    "PageIndex": pageIndex,
    "ReList": List<dynamic>.from(reList.map((x) => x.toJson())),
    "Success": success,
    "TotalCount": totalCount,
    "TotalSum": totalSum,
  };
}

class ReList {
  ReList({
    this.administrator,
    this.depart,
    this.id,
    this.linkMan,
    this.loginName,
    this.nowPattern,
    this.nowState,
    this.pic1,
    this.role,
    this.roleId,
    this.sort,
    this.tagIndex,
    this.linkmanPinyin,
  });

  int administrator;
  dynamic depart;
  int id;
  String linkMan;
  String loginName;
  int nowPattern;
  int nowState;
  String pic1;
  String role;
  dynamic roleId;
  int sort;
  String tagIndex;
  String linkmanPinyin;

  factory ReList.fromJson(Map<String, dynamic> json) => ReList(
    administrator: json["Administrator"],
    depart: json["Depart"],
    id: json["ID"],
    linkMan: json["LinkMan"],
    loginName: json["LoginName"],
    nowPattern: json["NowPattern"],
    nowState: json["NowState"],
    pic1: json["Pic1"],
    role: json["Role"],
    roleId: json["RoleID"],
    sort: json["Sort"],
  );

  Map<String, dynamic> toJson() => {
    "Administrator": administrator,
    "Depart": depart,
    "ID": id,
    "LinkMan": linkMan,
    "LoginName": loginName,
    "NowPattern": nowPattern,
    "NowState": nowState,
    "Pic1": pic1,
    "Role": role,
    "RoleID": roleId,
    "Sort": sort,
  };
}
